package io;

import java.io.BufferedWriter;
import java.io.FileWriter;
import java.io.IOException;

public class TestBufferedWriter {
    public static void main(String[] args) throws IOException {
        BufferedWriter writer = new BufferedWriter(new FileWriter("d:/test.txt", true));
        writer.write("今天星期四");
        writer.write("今天天气不错", 2, 4);
        writer.close();
    }
}
